/*
 * ===================================================
 *
 *       Filename:  list2.c
 *
 *
 *        Created:  10/08/2011 01:16:09 AM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  durand_y, <durand.yoan@gmail.com>
 *
 * ===================================================
 */
#include "list.h"

void        clear(s_list    *list)
{
    s_list  *l = NULL;
    while(list != NULL)
    {
        l = list->next;
        free(list);
        list = l;
    }
}
